<?php
/**
 *  无备注
 * ds
 * 2020.08.13
 */
namespace App\Models\MainDB;

use Illuminate\Database\Eloquent\Model;

class LisenceOrderLog extends Model{

    protected $table = 'ln_lisence_order_log';     //数据库内完整表名

    protected $primaryKey = 'id';    //主键名

    protected $fillable = [
        'id',
        'order_id',
        'add_time',
        'is_auto',
        'type',
        'memo',
        'memo_type',
        'admin_id',
    ];
    public $timestamps = false;

    //关联管理员模型
    public  function  admin(){

        return  $this->hasOne('App\Models\MainDB\Admin','admin_id','admin_id');
    }

}